package service

import (
	"good.house/internal/dto/request"
	"good.house/internal/model"
	"good.house/internal/repository"
)

type ListService struct {
	repo repository.IList
}

func NewListService(repo repository.IList) *ListService {
	return &ListService{
		repo: repo,
	}
}

func (service *ListService) GetList(req *request.ListRequest) ([]model.Publish, error) {
	return service.repo.FindRents(req)
}
